﻿using ReflectionStudio.Core.Events;
using System;
using System.Data;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Media;
using System.Diagnostics;
using System.ComponentModel;
using WPFExcelReport.Helpers;
using System.Windows.Input;
namespace WPFExcelReport
{
    public partial class TWT09
    {
        public TWT09()
        {
            if (DesignerProperties.GetIsInDesignMode(this))
                return;
            MV = new VWTSCHUSS();
            this.DataContext = MV;
            InitializeComponent();
        }
        public override void LOADBYAUF()
        {
            base.LOADBYAUF();
            if (!IsAuto)
                return;
            if (Rows > 0)
                return;
            PM["FLGNR"] = ORDERNUM.Substring(0, 15);
           
            TMV.CREATEBYBS(PM);
            vwMaster.View.MoveCurrentToFirst();
        }
       
    }
}
